<template>
  <div>
    <el-row>
      <el-col :span="24">
        <div class="addccc">
          <el-button type="primary" icon="el-icon-circle-plus-outline"
            >新建</el-button
          >
        </div>
      </el-col>
      <el-col :span="24">
        <div>
          <el-table :data="tableData" border style="width: 100%">
            <el-table-column prop="date" label="ID" width=""> </el-table-column>
            <el-table-column prop="name" label="类别" width="">
            </el-table-column>
            <el-table-column prop="address" label="签署日期"> </el-table-column>
            <el-table-column prop="address" label="密级"> </el-table-column>
            <el-table-column prop="address" label="作者"> </el-table-column>
            <el-table-column prop="address" label="签署"> </el-table-column>
            <el-table-column prop="address" label="文档名称"> </el-table-column>
            <el-table-column prop="address" label="序列号"> </el-table-column>
            <el-table-column label="操作" width="180" align="center">
              <template #default="scope">
                <el-button
                  size="mini"
                  @click="handleEdit(scope.$index, scope.row)"
                  >编辑</el-button
                >
                <el-button
                  size="mini"
                  type="danger"
                  @click="handleDelete(scope.$index, scope.row)"
                  >作废</el-button
                >
              </template>
            </el-table-column>
          </el-table>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 ",
        },
      ],
    };
  },
};
</script>

<style scoped>
.addccc {
  margin-bottom: 20px;
}
</style>